import { RootDispatch, RootState } from '@/types/store'
import { TypedUseSelectorHook, useDispatch, useSelector } from 'react-redux'

// 自定义 useSelector
export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector

// 自定义 useDispatch
export const useAppDispatch = () => useDispatch<RootDispatch>()
